package com.projects.android.dto;

import org.json.JSONException;
import org.json.JSONObject;

import android.util.Log;

public class InformationWebDTO {
	private int ID;
	private String Email;
	private String PassEmail;
	private String Address;
	
	public void initObject(JSONObject data){
		try {
			ID = Integer.valueOf(data.getString("ID"));
			setEmail(data.getString("Email"));
			setPassEmail(data.getString("PassEmail"));
			setAddress(data.getString("Address"));
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			Log.e("Init InformationWebDTO", e.toString());
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			Log.e("Init InformationWebDTO", e.toString());
		}
	}
	
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}

	public String getEmail() {
		return Email;
	}

	public void setEmail(String email) {
		Email = email;
	}

	public String getPassEmail() {
		return PassEmail;
	}

	public void setPassEmail(String passEmail) {
		PassEmail = passEmail;
	}

	public String getAddress() {
		return Address;
	}

	public void setAddress(String address) {
		Address = address;
	}
}
